/**
import { Comments } from '@/components/Comments';
 * Created by Administrator on 2018/11/17.
 */
const Cookie = require("../models/cookies");
/**
 * 增加公司信息
 */

module.exports = function (req, response) {

  const whereStr = {
    username: req.cookies.username
  };
  Cookie.findOne(whereStr).then(function (res) {
    res === null && cookie.save(function (err, res) {
      if (err) {
        console.log(err);
      }
    })
  });

}
